const router = require('koa-router')()

const loginRoute = require('./login')
const homeRoute = require('./home/index')

router.use('/login', loginRoute)
router.use('/home', homeRoute)
router.use('*', async (cxt) => { cxt.body = '404 not found' })

module.exports = router